package com.project.common.caching.provider;


import java.util.concurrent.TimeUnit;

public interface CacheProvider {
    ValueProvider forValue();

    HashProvider forHash();

    boolean exists(String key);

    void delete(String key);

    void expire(String key, long expiration, TimeUnit timeUnit);

    void persist(String key);

    long ttl(String key);

    void publish(String topic, String message);

    boolean setIfAbsent(String key, String value);
}
